package com.xz.knowledgeDuplication.pattern.command;

import java.util.HashMap;
import java.util.Map;

/**
 * 订单类
 *
 * @author 召
 * @date 2022-03-23 22:06:32
 */
public class Order {

    /**
     * 餐桌
     */
    private int diningTable;

    /**
     * 菜单
     */
    private Map<String, Integer> foodDic = new HashMap<String, Integer>();

    public int getDiningTable() {
        return diningTable;
    }

    public Map<String, Integer> getFoodDic() {
        return foodDic;
    }

    public void setDiningTable(int diningTable) {
        this.diningTable = diningTable;
    }

    public void setFoodDic(String name, int num) {
        this.foodDic.put(name, num);
    }
}
